/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ggsoft.timetracker.dao;

import com.ggsoft.timetracker.domain.Timecard;
import java.util.Date;
import java.util.List;
import org.appfuse.dao.GenericDao;
import org.appfuse.model.User;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author giovanella
 * @date May 17, 2014
 */
public interface TimeTrackerDao extends GenericDao<Timecard, Long>  {
    @Transactional
    Timecard findLastTimecard(User user);
    @Transactional
    void storeTimeCard(Timecard timecard);
    @Transactional
    List<Timecard> findTimecards(User user, String status, Date date);
}
